package com.bbz.core.sort;

import java.util.Comparator;

public class SortByScore implements Comparator<Student> {
	// 重写该接口的compare()使其按照分数由高到低排序（后者减去前者）
	@Override
	public int compare(Student o1, Student o2) {
		return o2.getScore() - o1.getScore();

	}
}
